<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>oauth</title>
    <link type="text/css" rel="stylesheet" href="css/oauth.css"/>
    <script language="JavaScript" src="js/prototype.js"/>
    </script>
    <script language="JavaScript" src="js/oauth.js">
    </script>
</head>
<body>
    <form name="oauth_form" id="oauth_form" method="post" action="">
        <div class="request">
            <fieldset>
                <legend>
                    OAuth Request
                </legend>
                <label for="request_token_url">
                    request_token_url
                </label>
                <input name="request_token_url" id="request_token_url" type="text" value="" />
                <label for="authorize_token_url">
                    authorize_token_url
                </label>
                <input name="authorize_token_url" id="authorize_token_url" type="text" value="" />
                <label for="access_token_url">
                    access_token_url
                </label>
                <input name="access_token_url" id="access_token_url" type="text" value="" />
            </fieldset>
            <fieldset>
                <legend>
                    OAuth Parameters
                </legend>
                <label for="consumer_key">
                    consumer_key
                </label>
                <input name="consumer_key" id="consumer_key" type="text" value="" />
                <label for="consumer_secret">
                    consumer_secret
                </label>
                <input name="consumer_secret" id="consumer_secret" type="text" value="" />
                <label>
                    oauth_signature_method
                </label>
                <select name="oauth_signature_method" id="oauth_signature_method">
                    <option value='HMAC-SHA1'>HMAC-SHA1</option>
                    <option value='RSA-SHA1'>RSA-SHA1</option>
                </select>
                <label>
                    http_method
                </label>
                <select name="http_method" id="http_method">
                    <option value='GET'>GET</option>
                    <option value='POST'>POST</option>
                </select>
                <label for="oauth_timestamp">
                    oauth_timestamp
                </label>
                <input name="oauth_timestamp" id="oauth_timestamp" class="readonly" readonly="readonly" type="text" value="" />
                <label for="oauth_nonce">
                    oauth_nonce
                </label>
                <input name="oauth_nonce" id="oauth_nonce" class="readonly" readonly="readonly" type="text" value="" />
                <label for="oauth_signature">
                    oauth_signature
                </label>
                <input name="oauth_signature" id="oauth_signature" class="readonly" readonly="readonly" type="text" value="" />
                <label for="access_token">
                    access_token
                </label>
                <input name="access_token" id="access_token" class="readonly" readonly="readonly" type="text" value="" />
                <label for="access_token_secret">
                    access_token_secret
                </label>
                <input name="access_token_secret" id="access_token_secret" class="readonly" readonly="readonly" type="text" value="" />
            </fieldset>
            <fieldset>
                <legend>
                    OAuth Process
                </legend>
                <label>
                    Get a Request Token
                </label>
                <button value="request_token" name="request_token_button" id="request_token_button">
                    Request token
                </button>
                <label>
                    Authorize the Request Token
                </label>
                <button value="authorize_token" name="authorize_token_button" id="authorize_token_button" disabled="disabled">
                    Authorize
                </button>
                <label>
                    Get an Access Token
                </label>
                <button value="access_token" name="access_token_button" id="access_token_button" disabled="disabled">
                    Access token
                </button>
            </fieldset>
        </div>
        <div class="response">
            <fieldset>
                <legend>
                    Request Console
                </legend>
                <textarea name="request_console" id="request_console" rows="10" class="readonly" readonly="readonly">
                </textarea>
            </fieldset>
            <fieldset>
                <legend>
                    Response Console
                </legend>
                <textarea name="response_console" id="response_console" rows="10" class="readonly" readonly="readonly">
                </textarea>
            </fieldset>
            <fieldset>
                <legend>
                    API Test
                </legend>
                <label for="api_url">
                    api_url
                </label>
                <input name="api_url" id="api_url" type="text" value="" />&nbsp;&nbsp;
                <button name="run_api_button" value="Run" id="run_api_button" disabled="disabled">
                    Run
                </button>
            </fieldset>
        </div>
    </form>
</body>
</html>
